package com.lujianfei.mqtt

import com.blankj.utilcode.util.DeviceUtils

object Constant {
    object MQ {
        // 替换为你的 MQTT 服务器地址和端口
        // tcp://192.168.0.111:61613
        const val host = "tcp://broker.emqx.io:1883"
        val userName: String = DeviceUtils.getUniqueDeviceId()  // uuid
        const val passWord = "public"
        val clientId: String = DeviceUtils.getUniqueDeviceId() //客户端标识
        const val subscribe_msg_Topic = "msg" // 要订阅的主题  消息
        const val subscribe_pos_Topic = "gps" // 要订阅的主题  定位
        const val publish_msg_Topic = "msg" // 要发布的主题  消息
        const val publish_pos_Topic = "gps" // 要发布的主题  定位
        // 置顶消息 task/#
        const val subscribe_Top_Topic = "task/#"
    }
}